package workflow;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;
import org.springframework.stereotype.Component;

@Component
public class BusinessTripListener  implements TaskListener {
    @Override
    public void notify(DelegateTask delegateTask) {
        if ("创建申请".equals(delegateTask.getName())
                && "create".equals(delegateTask.getEventName())) {
            delegateTask.setAssignee("歼击机");
        }
    }
}
